<?php 
namespace Admin\Model;
use Think\Model;

class ChargerModel extends Model {
    protected $_validate = array(
		array('name','require','姓名必须！'), //默认情况下用正则进行验证
		array('mobile','require','手机1必须！'), //默认情况下用正则进行验证
        array('mobile','','手机1已经存在！',2,'unique',3), 
	);
	protected  $_auto = array(
        array('uuid','getUUID',1,'callback'), 
        array('mobile2',''), 
	); 

	protected function getUUID(){
		return makeUuid();
	}
        
}